


// 项目路由配置 
import {
    MenuUnfoldOutlined,
    MenuFoldOutlined,
    UserOutlined,
    VideoCameraOutlined,
    UploadOutlined,
    PoweroffOutlined,
    ExclamationCircleOutlined,
    DownOutlined,
    HomeOutlined,
    DeploymentUnitOutlined,
    MailOutlined
  } from '@ant-design/icons';

//   权限管理
//   文件都是 后台提供 
//   登录 知道你角色 知道你的权限  
export const routerList = [
    {
        path:"/main/home",
        text:"首页",
        icon:<HomeOutlined/>,
        premission:0  // 权限  1 2 3  >=0 
    },
    {
        path:"/main/anno",
        text:"员工公告",
        icon:<UploadOutlined/>,
        premission:0 , // 权限  1 2 3  >=0 
        children:[
            {
                path:"/main/anno/list",
                text:"公告列表",
                icon:<UploadOutlined/>,
                premission:0  
            },
            {
                path:"/main/anno/add",
                text:"公告新增",
                icon:<UploadOutlined/>,
                premission:1  
            },
        ]
    },

    {
        path:"/main/advise",
        text:"意见反馈",
        icon:<MenuFoldOutlined/>,
        premission:0 , // 权限  1 2 3  >=0 
        children:[
            {
                path:"/main/advise/list",
                text:"意见列表",
                icon:<MenuFoldOutlined/>,
                premission:0  
            },
            {
                path:"/main/advise/add",
                text:"意见新增",
                icon:<MenuFoldOutlined/>,
                premission:0
            },
        ]
    },
    {
        path:"/main/user",
        text:"员工",
        icon:<UserOutlined/>,
        premission:0, // 权限  1 2 3  >=0 
        children:[
            {
                path:"/main/user/list",
                text:"员工列表",
                icon:<UserOutlined/>,
                premission:0 
            },
            {
                path:"/main/user/add",
                text:"员工管理",
                icon:<UserOutlined/>,
                premission:1
            },
            {
                path:"/main/user/fenxi",
                text:"员工分析",
                icon:<UserOutlined/>,
                premission:3
            },
        ]
    },
    
    {
        path:"/main/role",
        text:"权限",
        icon:<ExclamationCircleOutlined/>,
        premission:3 , // 权限  1 2 3  >=0 
        children:[
            {
                path:"/main/role/action",
                text:"权限管理",
                icon:<ExclamationCircleOutlined/>,
                premission:3 
            },
            {
                path:"/main/role/list",
                text:"权限列表",
                icon:<ExclamationCircleOutlined/>,
                premission:3
            },
            {
                path:"/main/role/fenxi",
                text:"数据分析",
                icon:<ExclamationCircleOutlined/>,
                premission:3
            },
        ]
    },
    {
        path:"/main/grade",
        text:"业绩管理",
        icon:<ExclamationCircleOutlined/>,
        premission:0 , // 权限  1 2 3  >=0 
        children:[
            {
                path:"/main/grade/add",
                text:"添加业绩",
                icon:<ExclamationCircleOutlined/>,
                premission:0 
            },
            {
                path:"/main/grade/my",
                text:"业绩详情",
                icon:<ExclamationCircleOutlined/>,
                premission:0
            },
            {
                path:"/main/grade/list",   //根据组级筛选 
                text:"业绩排名",
                icon:<ExclamationCircleOutlined/>,
                premission:0
            },
            {
                path:"/main/grade/fenxi",   //根据组级筛选 
                text:"业绩分析",
                icon:<ExclamationCircleOutlined/>,
                premission:0
            },
        ]
    },
    {
        path:"/main/kaoqin",
        text:"考勤",
        icon:<ExclamationCircleOutlined/>,
        premission:3 , // 权限  1 2 3  >=0 
        children:[
            {
                path:"/main/kaoqin/clock",
                text:"出勤管理",
                icon:<MenuUnfoldOutlined/>,
                premission:3 
            },
            {
                path:"/main/kaoqin/qingjia",
                text:"假期申请",
                icon:<MenuUnfoldOutlined/>,
                premission:3
            },
            
        ]
    },
    {
        path:"/main/info",
        text:"个人中心",
        icon:<DeploymentUnitOutlined />,
        premission:0  // 权限  1 2 3  >=0 
    },
]